const { resolve } = require('path');
// const Plugins = require('./plugins/Plugin1')
const DepWebpackPlugin = require('./plugins/DepWebpackPlugin')
const CopyWebpackPlugin = require('./plugins/CopyWebpackPlugin')

module.exports = {
  entry: resolve(__dirname, './src/index.js'),
  output: {
    filename: 'main.js',
    path: resolve(__dirname, 'dist')
  },
  plugins: [
    // new DepWebpackPlugin()
    new CopyWebpackPlugin({
      from: './public',
      ignore: ['index.html']
    })
  ]
}